<template>
	<view class="list">
		<view class="list-item" v-for="item in listarr" :key="item.name">
			<image :src="item.image_src" mode=""></image>
			<view class="price">
				<text class="now">￥3345</text>
				<text class="pass">￥5645</text>
			</view>
			<view class="name">{{item.name}}</view>
		</view>
	</view>
</template>

<script>
	export default {
		name:"goodlist",
		props: ['listarr'],
		data() {
			return {
				
			};
		}
	}
</script>

<style lang="scss">
	.list{
			width: 100%;
			display: flex;
			flex-wrap: wrap;
			justify-content: flex-start;
			.list_item{
				width: 48%;
				height: 400rpx;
				margin-left: 10rpx;
				image{
					width:100% ;
					height: 300rpx;
				}
				.now{
					color:$index-color ;
				}
				.pass{
					color: #C0C0C0;
					text-decoration: line-through;
				}
			}
		}
</style>
